<!DOCTYPE html>
<html lang="en" style="margin:0;padding:0;">
<head>
  <meta charset="UTF-8">
  <meta name="x-apple-disable-message-reformatting">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Order Confirmation #[[order_no]]</title>
  <style>
    @media (max-width: 640px) {
      .container { width:100% !important; max-width:100% !important; }
      .px-24 { padding-left:16px !important; padding-right:16px !important; }
      .stack th, .stack td { display:block !important; width:100% !important; text-align:left !important; }
      .btn { display:block !important; width:100% !important; }
      .hide-sm { display:none !important; }
    }
    [data-ogsc] .text-muted { color:#6b7280 !important; }
    a[x-apple-data-detectors] { color:inherit !important; text-decoration:none !important; }
  </style>
</head>
<body style="margin:0;padding:0;background:#f3f4f6;">
  <div style="display:none;opacity:0;visibility:hidden;height:0;overflow:hidden;mso-hide:all;">
    Thank you for your purchase. Estimated delivery in 3–7 business days.
  </div>

  <table role="presentation" cellpadding="0" cellspacing="0" border="0" width="100%" style="background:#f3f4f6;">
    <tr>
      <td align="center" style="padding:0 12px;">

        <!--[if mso]>
        <table role="presentation" cellpadding="0" cellspacing="0" border="0" width="600" align="center"><tr><td>
        <![endif]-->

        <table class="container" role="presentation" cellpadding="0" cellspacing="0" border="0"
               style="width:100%; max-width:600px; background:#ffffff; border-radius:12px; overflow:hidden; margin:24px auto;">

          <!-- 顶部品牌区（黑色背景） -->
          <tr>
            <td style="background:#111827; padding:18px 24px; color:#ffffff; font:700 18px/1.2 -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial;">
              VitaCorex
            </td>
          </tr>

          <!-- 标题 + 状态提示 -->
          <tr>
            <td class="px-24" style="padding:20px 24px;">
              <h1 style="margin:0 0 8px; font:700 20px/1.35 -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial; color:#111827;">
                Order Confirmation
              </h1>
              <p style="margin:0 0 14px; font:400 14px/1.6 -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial; color:#374151;">
                Thanks for your purchase! Your order has been received and is now being processed.
              </p>

              <table role="presentation" cellpadding="0" cellspacing="0" border="0" width="100%"
                     style="background:#f9fafb; border:1px solid #e5e7eb; border-radius:10px;">
                <tr>
                  <td style="padding:14px 16px;">
                    <table role="presentation" cellpadding="0" cellspacing="0" border="0" width="100%">
                      <tr>
                        <td valign="top" style="width:24px;"><span style="font-size:16px;">✅</span></td>
                        <td>
                          <p style="margin:0 0 6px; font:600 14px/1.5 -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial; color:#111827;">
                            Your order was placed successfully!
                          </p>
                          <p style="margin:0; font:400 13px/1.7 -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial; color:#374151;">
                            Estimated delivery: <strong>3–7 business days</strong>.
                          </p>
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </table>
            </td>
          </tr>

          <!-- 订单关键信息 -->
          <tr>
            <td class="px-24" style="padding:0 24px 8px;">
              <table role="presentation" cellpadding="0" cellspacing="0" border="0" width="100%" style="border-collapse:separate;border-spacing:0 6px;">
                <tr>
                  <td style="width:160px; color:#6b7280; font:600 12px/1.6 -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial;">Order Number</td>
                  <td style="font:500 13px/1.6 -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial; color:#111827;">
                    <span style="font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;"># [[order_no]]</span>
                  </td>
                </tr>
                <tr>
                  <td style="width:160px; color:#6b7280; font:600 12px/1.6 -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial;">Order Time</td>
                  <td style="font:500 13px/1.6 -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial; color:#111827;">[[order_time_formatted]]</td>
                </tr>
                <tr>
                  <td style="width:160px; color:#6b7280; font:600 12px/1.6 -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial;">Payment Status</td>
                  <td style="font:600 13px/1.6 -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial; color:#059669;">Confirmed</td>
                </tr>
              </table>
            </td>
          </tr>

          <!-- Order Summary -->
          <tr>
            <td class="px-24" style="padding:12px 24px 0;">
              <h2 style="margin:0 0 8px; font:700 16px/1.4 -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial; color:#111827;">Order Summary</h2>
            </td>
          </tr>
          <tr>
            <td class="px-24" style="padding:0 24px 8px;">
              <table role="presentation" cellpadding="0" cellspacing="0" border="0" width="100%"
                     class="stack" style="border:1px solid #e5e7eb; border-radius:8px; overflow:hidden;">
                <thead>
                  <tr>
                    <th align="left"   style="padding:10px 12px; background:#f9fafb; color:#6b7280; font:600 12px;">Product</th>
                    <th align="center" style="padding:10px 12px; background:#f9fafb; color:#6b7280; font:600 12px;">Qty</th>
                    <th align="right"  style="padding:10px 12px; background:#f9fafb; color:#6b7280; font:600 12px;">Unit</th>
                    <th align="right"  style="padding:10px 12px; background:#f9fafb; color:#6b7280; font:600 12px;">Subtotal</th>
                  </tr>
                </thead>
                <tbody style="background:#ffffff;">
                  <tr>
                    <td style="padding:12px; border-top:1px solid #e5e7eb;">
                      <div style="font:600 13px -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial; color:#111827;">[[product_name]] [[product_sub_title]]</div>
                      <div style="font:400 12px -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial; color:#6b7280;">[[buy_tip]]</div>
                    </td>
                    <td align="center" style="padding:12px; border-top:1px solid #e5e7eb; font:500 13px; color:#111827;">[[quantity]]</td>
                    <td align="right"  style="padding:12px; border-top:1px solid #e5e7eb; font:500 13px; color:#111827;">$[[unit_price]]</td>
                    <td align="right"  style="padding:12px; border-top:1px solid #e5e7eb; font:700 13px; color:#111827;">$[[line_total]]</td>
                  </tr>
                </tbody>
              </table>
            </td>
          </tr>

          <!-- 总价 -->
          <tr>
            <td class="px-24" style="padding:8px 24px 0;">
              <table role="presentation" cellpadding="0" cellspacing="0" border="0" width="100%">
                <tr>
                  <td align="right" style="padding:6px 0; color:#374151; font:400 13px;">Shipping</td>
                  <td align="right" style="padding:6px 0; width:140px; font:600 12px;">
                    <span style="display:inline-block; padding:2px 8px; background:#f3f4f6; color:#111827; border-radius:999px;">FREE SHIPPING</span>
                  </td>
                </tr>
                <tr>
                  <td align="right" style="padding:6px 0; color:#111827; font:700 15px;">Total</td>
                  <td align="right" style="padding:6px 0; width:140px; color:#111827; font:700 16px;">
                    $[[order_total]]
                  </td>
                </tr>
              </table>
            </td>
          </tr>

          <!-- 收货信息 -->
          <tr>
            <td class="px-24" style="padding:16px 24px 4px;">
              <h3 style="margin:0 0 8px; font:700 15px; color:#111827;">Shipping Information</h3>
              <p style="margin:0 0 2px; font:400 13px/1.7; color:#374151;">[[first_name]] [[last_name]]</p>
              <p style="margin:0 0 2px; font:400 13px/1.7; color:#374151;">[[line1]] [[line2]]</p>
              <p style="margin:0 0 2px; font:400 13px/1.7; color:#374151;">[[city]], [[state]] [[postal_code]], [[country]]</p>
              <p style="margin:6px 0 0; font:400 13px/1.7; color:#374151;">Email: [[customer_email]] · Phone: [[phone]]</p>
            </td>
          </tr>

          <!-- 按钮 -->
          <tr>
            <td class="px-24" align="left" style="padding:12px 24px 20px;">
              <a class="btn" href="[[order_link]]"
                 style="display:inline-block; width:100%; max-width:260px; background:#111827; color:#ffffff; text-decoration:none; text-align:center; font:700 14px; padding:12px 16px; border-radius:8px;">
                View Your Order
              </a>
              <div style="font:400 12px/1.7; color:#6b7280; margin-top:8px;">
                You’ll receive tracking details once your order has been dispatched.
              </div>
            </td>
          </tr>

          <!-- 分隔线 -->
          <tr><td style="height:1px; background:#e5e7eb;"></td></tr>

          <!-- Footer -->
          <tr>
            <td class="px-24" style="padding:16px 24px 20px;">
              <p style="margin:0 0 6px; font:600 13px; color:#111827;">Need help?</p>
              <p style="margin:0 0 10px; font:400 13px/1.7; color:#374151;">
                Contact us at <a href="mailto:contact@vitacorex.com" style="color:#2563eb; text-decoration:none; font-weight:600;">contact@vitacorex.com</a>. We typically respond within 24 hours.
              </p>
              <p style="margin:0; color:#6b7280; font:400 12px/1.6;">
                © 2025 LeadMob Technology Limited. All rights reserved.
              </p>
            </td>
          </tr>
        </table>

        <!--[if mso]></td></tr></table><![endif]-->

        <div style="max-width:600px; margin:8px auto 24px; text-align:center; color:#9ca3af; font:400 11px/1.6;">
          This is an automated message. Please do not reply directly to this email.
        </div>
      </td>
    </tr>
  </table>
</body>
</html>
